<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.sql.*, cn.edu.cqupt.cxcy.dto.*,java.util.*"%> 
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String basepath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ request.getContextPath() + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<base href="<%=basepath %>"/>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>待投项目</title>
	<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
<script type="text/javascript" src="js/jq-pjax.js"></script>
<style type="text/css">
*{	margin:0;
	padding:0;
}
div{
	
	box-sizing:border-box; 
	-moz-box-sizing:border-box;
	-webkit-box-sizing:border-box;
}
a{
	text-decoration: none;
	color: #000;
}
body{
	background: #f7f7f7;
}
.clearfix:before,.clearfix:after{ 
    content:""; 
    display:table; 
} 
.clearfix:after{clear:both;} 
.clearfix{ 
 *zoom:1;/*IE/7/6*/
}
.body_top{
	margin-bottom: 30px;
	background: #fff;
}
.body_top>div{
	width: 870px;
	height: 85px;

	margin:0 auto;
	padding-top:10px; 
}
.body_top>div>p{
	font-family:"微软雅黑";
	color: #90c624;
	font-size:40px;
	font-weight:900;
	display: inline-block;
}
.body_top>div>span{
	font-size: 14px;
	color: #8f8f8f;
	float: right;
	margin-top: 20px;
}
.body_top>div>img{
	float: right;
	margin: 17px 5px;
}
.body_top>div>div{
	display: inline-block;
}
.body_top>div>div>p{
	font-weight:500;
	letter-spacing: 2px;
	font-size: 18px;
	color: #8f8f8f;
}
.body_top>div>div>.last_p{
	color: #90c624;
	font-size: 12px;
	letter-spacing: 0px;
}
.body_wrap{
	width: 870px;
	margin:0 auto;
}
.body_wrap .left{
	float: left;
	height: 630px;
}
.body_wrap .left_top{
	background: #90c624;
	width: 180px;
	height: 70px;
	color: #fff;
	padding-top: 10px;
	font-size: 20px;
	font-weight:bold;
	text-align: center;
}
.body_wrap .left_top .last_p{
	font-size: 16px;
}
.body_wrap .left_botton{
	width: 180px;
	height: 200px;
	background: #fafafa;
	font-size: 15px;
	color: #6d6d6d;
}
.body_wrap .left_botton>p{
	padding:10px 35px;
}
.body_wrap .left_botton>p:hover{
	background: #f0f0f0;
	border-left: 3px solid #96c720;
}
.body_wrap .right{
	width: 600px;
	float: left;
	margin-left: 50px;
	border: 2px solid #bbbbbb;
}
.body_wrap .right_top{
	height: 45px;
	padding-left: 20px;
}
.body_wrap .right_top>p,.body_wrap .right_top>span{
	float: left;
	margin-top: 8px;
	padding: 0px 14px;
}
.body_wrap .right_top>p{
	padding: 0px 14px 7px 14px;
	cursor: pointer;
}
.body_wrap .right_top>p>span{
	font-size: 13px;
}
.body_wrap .right_top .tz{
	border-right: 3px solid #d2d2d2;
}
.body_wrap .right_top>p:hover{
	border-bottom: 3px solid #90c624;
	color: #90c624;
}
.body_wrap .same{
	padding: 0px 20px;
	display:none;'
}
.body_wrap .all_pro{
	display:block;
}
.body_wrap .same>div{
	padding-top: 15px;
	height: 85px;
	border-top: 2px dashed #bbbbbb;
}
.body_wrap .same>div button{
	padding: 2px 15px;
	background: #90c624;
	margin-top: 15px;
	border: none;
	border-radius: 5px;
	color: #fff;
}
.body_wrap .same>div>div{
	float: left;
}
.body_wrap .same>div>div h3{
	cursor: pointer;
}
.body_wrap .same>div>div a:hover{
	color: #82b221;
}
.body_wrap .same .jbxx{
	padding-top: 5px;
}
.body_wrap .same .jbxx span{
	margin-left:100px;
}
.body_wrap .same button{
	float: right;
}
.body_wrap .dtxm-fy{
	display: none;
	background: #fff;
}
.body_wrap .dtxm-fy-xx{
	display: inline-block;
	margin: 10px 0px;
}
.body_wrap .dtxm-fy-xx p>span{
	display: inline-block;
	width: 130px;
}
.body_wrap .dtxm-fy img{
	float: right;
}
</style>
	<script>
	$(function(){
	  $(document).pjax("a.turn_pjax","#main_right");
	})
	<% if(request.getAttribute("pjax_back") != null && !request.getAttribute("pjax_back").equals("")) {%> 
		<%=(String)request.getAttribute("pjax_back") %>
	<% } %>
	</script>
</head>
<body>
	<div class="body_top">
		<div>
			<p>天使投资人</p>
		    <div>
			    <p>ANGEL INVERTOR</p>
			    <p class="last_p">HI BUSINESS.LET YOU BECOME A SUCCESS</p>
		    </div>
		    <img src="img/weizhi.png">
		    <span>当前位置：<span>管理中心</span>><span>天使投资人</span></span>
		</div>
	</div>
	<div class="body_wrap">
		<div class="left">
		    <div class="left_top">
				<p>INVERTOR</p>
				<p class="last_p">天使投资人</p>
			</div>
			<div class="left_botton">
				<p><a class="turn_pjax" href="inve/havebeen">投资项目</a></p>
				<p><a class="turn_pjax" href="inve/showPro">待投项目</a></p>
				<!-- <p><a class="turn_pjax" href="inve/Dtxms">已被投项目</a></p> -->
			</div>
		</div>
		<div id="main_right">
		
		<div class="right dtxm-fy">
            <div class="dtxm-fy-xx">
                <p><span>项目所有人：</span></p>
                <p><span>项目分类：</span></p>
                <p><span>阶段发展：</span></p>
                <p><span>融资额:</span></p>
                <p><span>项目发布时间：</span></p>
            </div>
            <img src="img/gongsi.png">
            <p></p>
            <p class="lxr">联系人：<span></span></p>
            <p>电话:<span></span></p>
            <p>邮件:<span></span></p>
            <input id="xmfy_get" type="button" value="感兴趣"/>
</div>
		<div  class="right dtxm">
			<div class="right_top">
				<p><a  href="inve/showPro?projecttype=pro_all">全部<span>(${requestScope.allinfoofsum.get("all")})</span></a></p>
				<p><a class="turn_pjax" href="inve/showPro?projecttype=pro_dian">电子<span>(${requestScope.allinfoofsum.get("dianzi")})</span></a></p>
				<p><a class="turn_pjax" href="inve/showPro?projecttype=pro_can">餐饮<span>(${requestScope.allinfoofsum.get("canying")})</span></a></p>
				<p><a class="turn_pjax" href="inve/showPro?projecttype=pro_sheng">生物信息<span>(${requestScope.allinfoofsum.get("shengwu")})</span></a></p>
				<p><a class="turn_pjax" href="inve/showPro?projecttype=pro_shang">商务<span>(${requestScope.allinfoofsum.get("shangwu") })</span></a></p>
				<p><a class="turn_pjax" href="inve/showPro?projecttype=pro_qi">其它<span>(${requestScope.allinfoofsum.get("qita") })</span></a></p>

			</div>
		<div class="all_pro same">
		<c:if test="${!empty pro_show}">
		<c:forEach items="${pro_show}" var="Map" varStatus="status">
		
			<div>
		<div>

		<h3 title="${Map['pro_id']}"><a href=" ">${Map['projectname']}</a></h3>
	    <p class="jbxx">项目持有人：${Map['teamname']}<span>融资：${Map['acount'] }</span></p>
	    </div>
	    <button title="${Map['pro_id']}">查看详情</button>
	</div>
		</c:forEach>
		</c:if>
    <a href="inve/showPro?projecttype=pro_all&&pagenow=1">首页</a>   
    <c:if test="${requestScope.pageinfoofall.getPagenow()>1}">
      
        <a href="inve/showPro?projecttype=pro_all&&pagenow=${requestScope.pageinfoofall.getPagenow()}&&type=up">上一页</a>  
    </c:if>   
    跳转到第 <select name="pagenow" class="pro_all">  
    <c:forEach begin="1" end="${requestScope.pageinfoofall.getPagesum()}" step="1" var="pageIndex">  
     
                <option value="${pageIndex}" selected="selected">${pageIndex}</option>         
    </c:forEach>  
    </select>页   
  
    <c:if test="${requestScope.pageinfoofall.getPagenow()<requestScope.pageinfoofall.getPagesum()}"> 
         
        <a href="inve/showPro?projecttype=pro_all&&pagenow=${requestScope.pageinfoofall.getPagenow() }&&type=down">下一页</a>  
    </c:if>  
    <a href="inve/showPro?projecttype=pro_all&&pagenow=${requestScope.pageinfoofall.getPagesum()}">末页</a>  

		</div> 
		
		<div class="dianzi same">
	<c:if test="${!empty pro_show}">
		<c:forEach items="${pro_show}" var="Map" varStatus="status">
			<div>
		<div>

		<h3 title="${Map['pro_id']}""><a href=" ">${Map.value.projectname}</a></h3>
	    <p class="jbxx">项目持有人：${Map.value.teamname}<span>融资：${Map['acount'] }</span></p>
	    </div>
	    <button title="${Map['pro_id']}">查看详情</button>
	</div>
		</c:forEach>
		</c:if>
	
	   
    <a href="inve/showPro?projecttype=pro_dian&&pagenow=1">首页</a>   
    <c:if test="${requestScope.pageinfoofall.getPagenow()>1}">
      
        <a href="inve/showPro?projecttype=pro_dian&&pagenow=${requestScope.pageinfooffood.getPagenow()}&&type=up">上一页</a>  
    </c:if>   
    跳转到第 <select  name="pagenow" class="pro_dian">  
    <c:forEach begin="1" end="${requestScope.pageinfoofall.getPagesum()}" step="1" var="pageIndex">  
     
                <option value="${pageIndex}" selected="selected">${pageIndex}</option>         
    </c:forEach>  
    </select>页   
   
    <c:if test="${requestScope.pageinfoofall.getPagenow()<requestScope.pageinfoofall.getPagesum()}">  
        <a href="inve/showPro?projecttype=pro_dian&&pagenow=${requestScope.pageinfoofall.getPagenow()}&&type=down">下一页</a>  
    </c:if>  
    <a href="inve/showPro?projecttype=pro_dian&&pagenow=${requestScope.pageinfoofall.getPagesum()}">末页</a>  

		</div>			
		<div class="canyin same">
	<c:if test="${!empty pro_show}">
		<c:forEach items="${pro_show}" var="Map" varStatus="status">
			<div>
		<div>

		<h3 title="${Map['pro_id']}"><a href=" ">${Map.value.projectname}</a></h3>
	    <p class="jbxx">项目持有人：${Map.value.teamname}<span>融资：${Map.value.acount }</span></p>
	    </div>
	    <button title="${Map['pro_id']}">查看详情</button>
	</div>
		</c:forEach>
		</c:if>
		
    <a href="inve/showPro?projectType=pro_can&&pagenow=1">首页</a>   
    <c:if test="${requestScope.pageinfoofall.getPagenow()>1}">
      
        <a href="inve/showPro?projectType=pro_can&&pagenow=${requestScope.pageinfoofall.getPagenow()}&&type=up">上一页</a>  
    </c:if>   
    跳转到第 <select name="pagenow" class="pro_can">  
    <c:forEach begin="1" end="${requestScope.pageinfoofall.getPagesum()}" step="1" var="pageIndex">  
     
                <option value="${pageIndex}" selected="selected">${pageIndex}</option>         
    </c:forEach>  
    </select>页   
 
    <c:if test="${requestScope.pageinfoofall.getPagenow()<requestScope.pageinfoofall.getPagesum()}">  
        <a href="inve/showPro?projectType=pro_can&&pagenow=${requestScope.pageinfoofall.getPagenow()}&&type=down">下一页</a>  
    </c:if>  
    <a href="inve/showPro?projecttype=pro_can&&pagenow=${requestScope.pageinfoofall.getPagesum()}">末页</a>   
	
			</div>
		<div class="shengwuxinxi same">
				<c:if test="${!empty pro_show}">
		<c:forEach items="${pro_show}" var="Map" varStatus="status">
			<div>
		<div>

		<h3 title="${Map['pro_id']}"><a href=" ">${Map.value.projectname}</a></h3>
	    <p class="jbxx">项目持有人：${Map.value.teamname}<span>融资：${Map.value.acount }</span></p>
	    </div>
	    <button title="${Map['pro_id']}">查看详情</button>
	</div>
		</c:forEach>
		</c:if>
	
   <form action="" method="get" >  
    <a href="">首页</a>   
  <c:if test="${requestScope.pageinfoofall.getPagenow()>1}">
      
        <a href="inve/showPro?projecttype=pro_sheng&&pagenow=${requestScope.pageinfoofall.getPagenow()}&&type=up">上一页</a>  
    </c:if>  
    跳转到第 <select name="pagenow" class="pro_sheng">  
    <c:forEach begin="1" end="${requestScope.pageinfoofall.getPagesum()}" step="1" var="pageIndex">  
     
                <option value="${pageIndex}" selected="selected">${pageIndex}</option>         
    </c:forEach>  
    </select>页   

    <c:if test="${requestScope.pageinfoofall.getPagenow()<requestScope.pageinfoofall.getPagesum()}">  
        <a href="inve/showPro?projecttype=pro_sheng&&pagenow=${requestScope.pageinfoofall.getPagenow()}&&type=down">下一页</a>  
    </c:if>  
    <a href="inve/showPro?projecttype=pro_sheng&&pagenow=${requestScope.pageinfoofall.getPagesum()}">末页</a>  
</form> 
			</div>
			<div class="shangwu same">
	<c:if test="${!empty pro_show}">
		<c:forEach items="${pro_show}" var="Map" varStatus="status">
			<div>
		<div>

		<h3 title="${Map['pro_id']}""><a href=" ">${Map.value.projectname}</a></h3>
	    <p class="jbxx">项目持有人：${Map.value.teamname}<span>融资：${Map.value.acount }</span></p>
	    </div>
	    <button title="${Map['pro_id']}">查看详情</button>
	</div>
		</c:forEach>
		</c:if>
		
	    <form action="" method="get" >  
    <a href="inve/showPro?projecttype=shangwu&&pagenow=1">首页</a>   
    <c:if test="${requestScope.pageinfoofall.getPagenow()>1}">
      
        <a href="inve/showPro?projecttype=pro_shang&&pagenow=${requestScope.pageinfoofall.getPagenow()}&&type=up">上一页</a>  
    </c:if>   
    跳转到第 <select name="pagenow" class="pro_shang">  
    <c:forEach begin="1" end="${requestScope.pageinfoofall.getPagesum()}" step="1" var="pageIndex">  
     
                <option value="${pageIndex}" selected="selected">${pageIndex}</option>         
    </c:forEach>  
    </select>页   
  
    <c:if test="${requestScope.pageinfoofall.getPagenow()<requestScope.pageinfoofall.getPagesum()}">  
        <a href="inve/showPro?projecttype=pro_shang&&pagenow=${requestScope.pageinfoofall.getPagenow()}&&type=down">下一页</a>  
    </c:if>  
    <a href="inve/showPro?projecttype=pro_shang&&pagenow=${requestScope.pageinfoofall.getPagesum()}">末页</a>  
</form> 
			</div>
	<div class="qita same">
	<c:if test="${!empty pro_show}">
		<c:forEach items="${pro_show}" var="Map" varStatus="status">
			<div>
		<div>

		<h3 title="${Map['pro_id']}"><a href=" ">${Map.value.projectname}</a></h3>
	    <p class="jbxx">项目持有人：${Map.value.teamname}<span>融资：${Map.value.acount }</span></p>
	    </div>
	    <button title="${Map['pro_id']}">查看详情</button>
	</div>
		</c:forEach>
		</c:if>
	
	    <form action="" method="get" >  
    <a href="inve/showPro?projecttype=qita&&pagenow=1">首页</a>   
    <c:if test="${requestScope.pageinfoofqita.getPagenow()>1}">
      
        <a href="inve/showPro?projecttype=pro_qi&&pagenow==${requestScope.pageinfoofall.getPagenow()}&&type=up">上一页</a>  
    </c:if>   
    跳转到第 <select  name="pagenow" class="pro_qi">  
    <c:forEach begin="1" end="${requestScope.pageinfoofall.getPagesum()}" step="1" var="pageIndex">  
     
                <option value="${pageIndex}" selected="selected">${pageIndex}</option>         
    </c:forEach>  
    </select>页   
   
    <c:if test="${requestScope.pageinfoofall.getPagenow()<requestScope.pageinfoofall.getPagesum()}">  
        <a href="inve/showPro?projecttype=pro_qi&&pagenow=${requestScope.pageinfoofall.getPagenow()}&&type=down">下一页</a>  
    </c:if>  
    <a href="inve/showPro?projecttype=pro_qi&&pagenow=${requestScope.pageinfoofall.getPagesum()}">末页</a>  
</form> 
		</div>	
		</div>		
		</div>
		</div> 

<script type="text/javascript">	


	$(document).ready(function(){


		//左边的导航栏
		$(".right_top").children().eq(0).click(function(){
			$(".all_pro").siblings().css('display','none');
			$(".all_pro,.right_top").css('display','block');
			$(this).css({'border-bottom':'3px solid #90c624','color':'#90c624'});
			$(this).siblings('p').css({'border':'none','color':'#000'});
		})
		$(".right_top").children().eq(1).click(function(){
			$(".dianzi").siblings().css('display','none');
			$(".dianzi,.right_top").css('display','block');
			$(this).css({'border-bottom':'3px solid #90c624','color':'#90c624'});
			$(this).siblings('p').css({'border':'none','color':'#000'});
		})
		$(".right_top").children().eq(2).click(function(){
			$(".canyin").siblings().css('display','none');
			$(".canyin,.right_top").css('display','block');
			$(this).css({'border-bottom':'3px solid #90c624','color':'#90c624'});
			$(this).siblings('p').css({'border':'none','color':'#000'});
		})
		$(".right_top").children().eq(3).click(function(){
			$(".shengwuxinxi").siblings().css('display','none');
			$(".shengwuxinxi,.right_top").css('display','block');
			$(this).css({'border-bottom':'3px solid #90c624','color':'#90c624'});
			$(this).siblings('p').css({'border':'none','color':'#000'});
		})
		$(".right_top").children().eq(4).click(function(){
			$(".shangwu").siblings().css('display','none');
			$(".shangwu,.right_top").css('display','block');
			$(this).css({'border-bottom':'3px solid #90c624','color':'#90c624'});
			$(this).siblings('p').css({'border':'none','color':'#000'});
		})
		$(".right_top").children().eq(5).click(function(){
			$(".qita").siblings().css('display','none');
			$(".qita,.right_top").css('display','block');
			$(this).css({'border-bottom':'3px solid #90c624','color':'#90c624'});
			$(this).siblings('p').css({'border':'none','color':'#000'});
		})
		$("select").change(function(){
			var page=$(this).attr("name");
			var sel_Num=$(this).val();
			var sel_type=$(this).attr("class");
			window.location.href='inve/showPro?projecttype='+sel_type+'&&'+page+'='+sel_Num;
		})
		$(".same h3,.same button").click(function(){
			$(".dtxm").css('display','none');
			$(".dtxm-fy").css('display','block');
			return false;
		})
		//头部的点击
		$(".right_top>p").click(function(){
			$(this).css("border-bottom","3px solid #90c624");
			$(this).siblings().css("border-bottom","none");
			

		})
		
		$(document).pjax("a.turn_pjax","#main_right");
	})
			// 传id值
			
		var teacher_id;
		$(".same h3,.same button").click(function(){
			 teacher_id = $(this).attr("title");
			$(".dtxm").css('display','none');
			$(".dtxm-fy").css('display','block');
			mem_info("./inve/showproject",teacher_id,print_pro);
			return false;
		});
		$("#xmfy_get").click(function(){
			 if(confirm("将您的联系方式发送给该项目负责人？"))
				 {
				mem_info("./inve/SolveMail",teacher_id,conf);
				 }
		})
		function conf(data){
			if(data){
				alert("发送成功！");
			}
		}
		function print_pro(data){
		 $(".dtxm-fy-xx").children().eq(0).append(data.pro_teamname);
		 $(".dtxm-fy-xx").children().eq(1).append(data.pro_type);
		 $(".dtxm-fy-xx").children().eq(2).append(data.pro_progress);
		 $(".dtxm-fy-xx").children().eq(3).append(data.pro_acount);
		 $(".dtxm-fy-xx").children().eq(4).append(data.pro_time);
		 $(".dtxm-fy").children().eq(3).append(data.pro_content).css("margin-bottom","10px");
		 $(".dtxm-fy").children().eq(4).append(data.pro_pname);
		 $(".dtxm-fy").children().eq(5).append(data.pro_tel);
		 $(".dtxm-fy").children().eq(6).append(data.pro_mail);
		}
		
		function mem_info(mem_url,id,callback) {
		      $.ajax({
		         type: "post",
		         url: mem_url,
		         data: {"id":id},
		         dataType: "json",
		         success:function(data){
		             callback(data);
		         },
		         error: function (e) {
		             alert(e.massage)
		         }
		     });
		     } 

</script>
</body>
</html>